<?php

use \App\Models\Commerce\Orders\Adjustment;
use \App\Leyao\Commerce\Promotions\Rules\RuleCheckerInterface;
use \App\Leyao\Commerce\Promotions\Actions\PromotionActionCommandInterface;

return [
	'order' => [
		'type' => [
			'shopping' => '消费'
		],
	],
	'payments'	=>	[
		'alipay'	=>	'支付宝',
		'wechat'	=>	'微信',
		'unionpay'	=>	'银联',
		'otherpay'	=>	'其它',
	],
	'receivables_method'    =>  [
		'automatic_payment'     =>  '自动支付',
		'call_attendant'        =>  '呼叫服务员',
		'completed_by_waitr'    =>  '服务员完成'
	],
    'orders_status'   =>  [
        'state' =>  [
            'new'           =>  '新订单',
            'cart'          =>  '购物车',
            'cancelled'     =>  '已取消',
            'fulfilled'     =>  '已完成',
			'refunded'      =>  '已退单',
            'partially_refunded' => '部分退单'
        ],
        'type'  =>  [
            'shopping'      =>  '消费订单',
            'recharging'    =>  '充值订单'
        ],
        'checkout_state'    =>  [
            'cart'          =>  '购物车',
            'completed'		=>  '结账完成',
            'payment_selected' => '选择付款'
        ],
        'payments_state'    =>  [
            'cart'          =>  '购物车',
            'awaiting_payment'  =>  '等待支付',
            'partially_paid'    =>  '部分支付',
            'cancelled'         =>  '已取消',
            'paid'              =>  '支付',
            'partially_refunded'=>  '部分退款',
            'refunded'          =>  '退款'
        ],
        'adjustment'        =>  [
            Adjustment::TYPE_ORDER_PROMOTION   =>  '促销',
	        Adjustment::TYPE_ORDER_PRODUCT_MODIFY => '口味加价',
	        Adjustment::TYPE_ORDER_PACKAGE_ITEM => '套餐子项',
//	        Adjustment::TYPE_ORDER_PACKAGE_MAIN_ITEM => '套餐主打产品销价',
        ]
    ],
	'promotions' => [
		'rules' => [
			'types' => [
				RuleCheckerInterface::TYPE_ITEM_TOTAL => '订单总价大于等于',
				RuleCheckerInterface::TYPE_ORDER_CONTAIN => '订单包含',
			]
		],
		'actions' => [
			'types' => [
				PromotionActionCommandInterface::TYPE_ORDER_FIXED_DISCOUNT => '订单固定优惠',
				PromotionActionCommandInterface::TYPE_ORDER_ITEM_FIXED_DISCOUNT => '订单项固定优惠',
				PromotionActionCommandInterface::TYPE_ORDER_PERCENTAGE_DISCOUNT => '订单百分比优惠',
				PromotionActionCommandInterface::TYPE_ORDER_ITEM_PERCENTAGE_DISCOUNT => '订单项百分比优惠',
				PromotionActionCommandInterface::TYPE_ORDER_NTH_PRODUCT_FIXED_DISCOUNT => '第N件固定优惠',
				PromotionActionCommandInterface::TYPE_ORDER_NTH_PRODUCT_PERCENTAGE_DISCOUNT => '第N件百分比优惠',
			]
		]
	],
];